package org.example.service;

import org.example.domain.DiscussPost;
import org.example.vo.IndexPageVO;

import java.util.List;

public interface DiscussService {
    int importAll(List<DiscussPost> discussPostList);
    List<DiscussPost> searchByLimitParam(int page,int limit);
    IndexPageVO dynamicSearchByUserId(Integer userId, Integer page, Integer limit);
    int searchCount(Integer userId);
    int saveOne(DiscussPost discussPost);
    DiscussPost searchById(int id);
    List<Integer> searchUserDiscussIds(int userId);
    int updateType(int id,int type);
    int updateStatus(int id,int status);
    IndexPageVO searchHotDiscuss(int page,int limit);
    int updateScoreById(Integer id,Double score);
}
